package com.mjk.scheduled;


import com.mjk.api.dto.ApiDto;
import com.mjk.common.base.work.annotation.BeeWork;
import com.mjk.common.tools.logger.BizLogger;
import com.mjk.common.tools.scheduled.annotation.BeeScheduled;
import com.mjk.common.tools.springextend.BeeApplicationListener;

/**
 * 定时任务案例
 * 1 启用 @EnableScheduling
 * 2 配置文件添加sechedule.enable=true
 */
@BeeWork(work = "schedule")
public class ScheduledExample implements BeeApplicationListener {


    //@BeeScheduled(scheduledName = "", cron = "0/10 * * * * ?")
    public void uploadSchedule(){
        BizLogger.info("uploadSchedule");
    }


}
